function [cr1, cr2, cw1, cw2] = cost(n1, n2);

x = 0.1;
y = 0.5;

c1 = n1^y;
c2 = n2^y;

%retail cost for data and video
cr1 = x*c1;
cr2 = x*c2;

%whole sale cost for data and video
cw1 = (1-x)*c1;
cw2 = (1-x)*c2;